package com.wn.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;

/**
 * @author yellow Docter
 * @date 2022 -07-12
 * @desc
 */
@Configuration
//@ComponentScan(
//        value="com.wn",
//        // 排除的类型是 注解 ,这个注解是@Controller
//        excludeFilters={
//                //剔除 controller
//                @ComponentScan.Filter(
//                        type = FilterType.ANNOTATION,
//                        classes = Controller.class
//                ),
//                // 剔除 Configuration
//                // 把 springmvc的config扫描进去了 测试报错
//                @ComponentScan.Filter(
//                        type = FilterType.ANNOTATION,
//                        classes = Configuration.class
//                ),
//        }
//)
@ComponentScan({"com.wn.mapper","com.wn.service"})
@PropertySource("classpath:db.properties")
@Import({JDBCConfig.class,MyBatisConfig.class})
public class SpringConfig {

}
